<% provide(:title, 'Sign up') %>
<h1>注册</h1>
<div class="row">
  <div class="col-md-6 col-md-offset-3">
    <%= form_for(@user) do |f| %>
        <%= render 'shared/error_messages' %>
        <%= f.label :nickname, "昵称" %>
        <%= f.text_field :nickname, class: 'form-control' %>
        <%= f.label :username, "账户" %>
        <%= f.text_field :username, class: 'form-control' %>
        <%= f.label :password, "密码" %>
        <%= f.password_field :password, class: 'form-control' %>
        <%= f.label :password_confirmation, "确认密码" %>
        <%= f.password_field :password_confirmation, class: 'form-control' %>
        <%= f.submit "创建账户", class: "btn btn-primary" %>
    <% end %>
  </div>
</div>